Ania Majewska and Reni Kaul
May 22, 2019
Ania Majewska
R in my research to:
Reni Kaul
R in my research to:
The workshop series consists of four half day workshops each focusing on a different part of the research process
R (Today: Ania Majewska and Reni Kaul)RYou
Instructors
At the end of this workshop you should be able to…
Topics
R and RStudio?Introduction to R and tidyverse
Break
Code along exercise
Break
Troubleshooting
Exploring data in groups
Break
Wrap Up
Datacamp.com
R) R packages which are collections of functions and data sets developed by the community.R programming easier:
Let's open Rstudio!
%>%) to connect data (object) to verbs (functions). The tidyverse package is designed to make it easy to install and load core packages from the tidyverse in a single command.
tidyverse package. This can be done by clicking on buttons in Rstudio or from the console using install.packages()# install all the packages in the tidyverse
install.packages("tidyverse")
library().# load tidyverse library
library(tidyverse)
Unzip and open the folder.
Resume in 15 min
Resume in 15 min
?function() to accessPackages have a vignette and/or reference manual on cran.r-project.org
People often make their own tutorials too
First, try to understand the error message. It can be very helpful.
Let's work in small groups (max of 3)
W1_Exercise.Rmd fileMore instructions in the file.
Resume in 15 min
We can…
using
dplyr package
ggplot2 package
Next week
Focus on communication by following best practices for reproducible research
We will be using datacamp.com to build more skills!